<template>
  <div>
    <p>学校名:{{name}}</p>
    <p>地址名:{{adress}}</p>
    <button @click="sendSchoolName">点我App收到学校名</button>
  </div>
</template>

<script>
export default {
  name:"School",
  props:["getSchoolName"],
  methods:{
    sendSchoolName(){
      this.getSchoolName(this.name)
    }
  },
  data(){
    return {
        name:"绿马",
        adress:"南京"
    }
  }
}
</script>

<style>

</style>